﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MatrixWebApiCore.Entity
{
    /// <summary>
    /// 返回数据封装
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BackResult<T>
    { 
        private bool _success = true;
        private string _msg="处理成功";
        private T _data;
        /// <summary>
        /// 是否处理成功
        /// </summary>
        public bool Success { get => _success; set => _success = value; }
        /// <summary>
        /// 消息提示
        /// </summary>
        public string Msg { get => _msg; set => _msg = value; }
        /// <summary>
        /// 返回数据对象
        /// </summary>
        public T Data { get => _data; set => _data = value; }
    }
    
}
